<?php

require_once "Shape3D.php";
class Paralelepipedo extends Shape3D {

	public function __construct($width, $length, $height) {
		parent::__construct($width,$length, $height);
		$this->shapeType = "Paralelepiped";
	}

	public function printInfo() {
		echo "This shape is " . $this->getShapeType() . "
				and has width = " . $this->width . " and height = " . $this->height ."
				  and length = " . $this->length . "<br/>";
	}


	public function getArea() {
		return 4*$this->width * $this->height + 2 * $this->width * $this->length;
	}
}


$paral = new Paralelepipedo(100, 200, 150);
$paral->printInfo();
echo $paral->getArea();
?>